<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Construct a new SVMModel</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="svmmodel.checkprobabilitymodel.html">« SVMModel::checkProbabilityModel</a></li>
      <li style="float: right;"><a href="svmmodel.getlabels.html">SVMModel::getLabels »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.svmmodel.html">SVMModel</a></li>
    <li>Construct a new SVMModel</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="svmmodel.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SVMModel::__construct</h1>
  <p class="verinfo">(PECL svm &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">SVMModel::__construct</span> &mdash; <span class="dc-title">Construct a new SVMModel</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-svmmodel.construct-description">
  <h3 class="title">说明</h3>
  <div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>SVMModel::__construct</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code><span class="initializer"> = ?</span></span>)</div>

  <p class="para rdfs-comment">
   Build a new SVMModel. Models will usually be created from the 
   SVM::train function, but then saved models may be restored directly.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-svmmodel.construct-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">filename</code></dt>

     <dd>

      <p class="para">
       The filename for the saved model file this model should load. 
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-svmmodel.construct-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws a <span class="classname"><strong class="classname">SVMException</strong></span> on error
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-svmmodel.construct-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="svmmodel.load.html" class="methodname" rel="rdfs-seeAlso">SVMModel::load()</a> - Load a saved SVM Model</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>